<template>
  <div>
<ul v-for="image in images">
  <li>{{image.fileId}}</li>
  <li>{{image.path}}</li>

</ul>
  </div>

</template>

<script>
import axios from "axios";

export default {
  name: "viewImage",
  data(){
    return{
      images:[]
    }
  },
  mounted(){
    this.getImage();
  },
  methods: {
    getImage() {
      axios.get('http://localhost:8081/view/image/1', {}).then(res => {
        console.log(res.data)
        console.log('hh')
        this.images = res.data;
      })
    }
  }

}
</script>

<style scoped>

</style>
